#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''Use as follows:

    python setup.py build   # to only build the module
    python setup.py install # to build and install
'''

# http://docs.python.org/distutils/sourcedist.html

import sys

if not (2, 5) < sys.version_info[:2] < (3, 0):
    raise RuntimeError("tctable requires Python 2.6 or higher.")

from distutils.core import setup
from distutils.extension import Extension

setup(
    ext_modules = [Extension("pykesto.tctable", ["pykesto/tctable.c"],
                             #include_dirs=['/usr/include'],
                             #library_dirs=['/usr/lib'],
                             #runtime_library_dirs=['/usr/lib'],
                             libraries=['tokyocabinet'],
                            )
                  ],
    name = 'pykesto',
    version = '0.0.1',
    description = 'A persistence mechanism for Python using Tokyo Cabinet for the backend',
    long_description = 'A schemaless, transactional, concurrent, ' \
                       'queryable (indexable), object-oriented database ' \
                       'for Python applications.',
    author       = 'Nando Florestan',
    author_email = 'nandoflorestan@gmail.com',
    url          = 'http://code.google.com/p/pykesto/',
    download_url = 'http://code.google.com/p/pykesto/downloads/list',
    classifiers  = ['Development Status :: 3 - Alpha',
                    'Intended Audience :: Developers',
                    'License :: OSI Approved :: BSD License',
                    'Operating System :: OS Independent',
                    'Programming Language :: Python :: 2.6',
                    'Programming Language :: C',
                    'Topic :: Database :: Database Engines/Servers',
                    'Topic :: Software Development :: Libraries :: Application Frameworks',
                   ],
    packages = ['pykesto'],
)
